package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.MyTravelList;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MyTravelListMapper {
    void deleteByPrimaryKey(Long id);

    void insert(MyTravelList record);

    MyTravelList selectByPrimaryKey(Long id);

    List<MyTravelList> selectAll();

    void updateByPrimaryKey(MyTravelList record);

    MyTravelList selectByUserIdAndStrategyId(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    List<Map> getByUserId(@Param("userId") Long userId);
}